package org.sanmao.wyj.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.sanmao.wyj.domain.Admin;
import org.springframework.stereotype.Service;

@Mapper
public interface AdminDao extends BaseMapper<Admin> {
    @Select("select * from admin where username = #{username} and password = #{password}")
    Admin findAdminByUsernameAndPassword(@Param("username") String username,@Param("password") String password);
}
